//封装storage
var storage = {
    //设置localstorage
    set(key, value){
        localStorage.setItem(key, value)
        // localStorage.key = value
        // localStorage[key] = value
    },
    //获取localstorage
    get(key){
        return localStorage.getItem(key)
    },
    //移除某个存在localstorage里的值
    remove(key){
        localStorage.removeItem(key)
    },
}

export default storage
